package com.csdj.t309.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ConstructorTest {

    private String name;
    private int age;

    @Autowired
    private IUserService userService;


    @Override
    public String toString() {
        return "ConstructorTest{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void printUserService(){
        System.out.println("打印userservice信息：");
        System.out.println(userService.toString());
    }
}
